package com.intehel.mapper;

import com.intehel.pojo.security.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description:
 * @Author: Kele
 * @CreateDate: 2022/6/1 9:44
 * @Version:
 */
@Mapper
@Component
public interface RoleMapper {

    /**
     * 通过用户id查询用户角色信息
     * @param userId 用户id
     * @return java.util.List<com.intehel.pojo.Role> 用户角色信息
     * @author: Kele
     * @date 2022/6/1 9:59
     */
    List<Role> getRoleByUserId(Integer userId);
}
